<?php  
session_start();
//manggil file

include("../../../config/config.php");
$nip=$_SESSION['NIP'];
if(isset($_POST["Grade"]))  

{
	$grade = $_POST['grade'];
	$tg = $_POST['tg'];
	
	
	
		
		
		
		
		$sql3 = "INSERT INTO grade (GRADE, TANGGAL_GRADE, NIP)
		VALUES ('$grade','$tg','$nip')";
		mysql_query($sql3);
		
		
		header('Location: /mpd/dh/sdm/view/addjabatan.php');
}else if(isset($_POST["Job"])) 
{
$job = $_POST['job'];
$tj = $_POST['tj'];
$sql4 = "INSERT INTO job (JOB_GRADE, TANGGAL_JOB, NIP)
		VALUES ('$job','$tj','$nip')";
		mysql_query($sql4);
	header('Location: /mpd/dh/sdm/view/addjabatan.php');
}else if(isset($_POST["Core"])) 
{
$core = $_POST['core'];
$tcore = $_POST['tcore'];
$sql1 = "INSERT INTO core (CORE_COMPETENCE, TAHUN_CORE, NIP)
		VALUES ('$core','$tcore','$nip')";
		mysql_query($sql1);
	header('Location: /mpd/dh/sdm/view/addjabatan.php');
}else if(isset($_POST["Corp"])) 
{
$corp = $_POST['corp'];
$tcorp = $_POST['tcorp'];
$sql2 = "INSERT INTO corporate (CORPORATE_TITLE, TAHUN_CORPORATE, NIP)
		VALUES ('$corp','$tcorp','$nip')";
		mysql_query($sql2);
		header('Location: /mpd/dh/sdm/view/addjabatan.php');
		
}

?>
